package ssq.gamest.game;

public enum Color
{
    spades("黑桃"), hearts("红桃"), clubs("草花"), diamonds("方片"), none("无");
    private Color(String name)
    {
        this.name = name;
    }

    @Override
    public String toString()
    {
        return name;
    }

    static Color[] colors = new Color[] { spades, hearts, clubs, diamonds, none };

    public static Color get(int index)
    {
        return colors[index];
    }
    
    private String name;
}
